package cn.sfrog.common.core.domain.entity;

import cn.sfrog.common.annotation.Excel;
import cn.sfrog.common.annotation.Excel.Type;
import cn.sfrog.common.annotation.Excels;
import cn.sfrog.common.core.domain.BaseEntity;
import cn.sfrog.common.xss.Xss;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 用户对象 sys_user
 */
@Data
public class SysUserVO{
    private static final long serialVersionUID = 1L;

    @Excel(name = "用户账号")
    private String userName;

    @Excel(name = "用户昵称")
    private String nickName;
    /**
     * 部门对象
     */
    @Excels({
            @Excel(name = "部门名称" , targetAttr = "deptName" , type = Type.EXPORT)
    })
    private SysDept dept;

    @Excel(name = "角色")
    private String roleNames;

    @Excel(name = "手机号码")
    private String phonenumber;

    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
